// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** Component instruction issuance POST /v1/ota/component/instruction-issuance */
export async function otaComponentControllerComponentInstructionIssuance(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.otaComponentControllerComponentInstructionIssuanceParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultBoolean>(`${apiPrefix}/v1/ota/component/instruction-issuance`, {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Component record list GET /v1/ota/component/list */
export async function otaComponentControllerComponentEscalationList(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.otaComponentControllerComponentEscalationListParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationOtaComponentRecordVO>(
    `${apiPrefix}/v1/ota/component/list`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** Station component escalation list GET /v1/ota/station-component/list */
export async function otaComponentControllerStationComponentEscalationList(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.otaComponentControllerStationComponentEscalationListParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationOtaStationComponentVO>(
    `${apiPrefix}/v1/ota/station-component/list`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}
